package com.lp.common.poster.entity;

import com.lp.common.poster.annotation.PosterBackground;
import com.lp.common.poster.annotation.PosterFontCss;
import com.lp.common.poster.annotation.PosterImageCss;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.awt.*;
import java.awt.image.BufferedImage;

/**
 * @program: biz
 * @description:
 * @author: Ke.Song
 * @since: 2024-09-26 21:16:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ClassNoticePoster extends BasePoster {

    /**
     * 背景图
     */
    @PosterBackground(width = 1029, height = 792)
    private BufferedImage backgroundImage;

    /**
     * 昵称
     */
    @PosterFontCss(position = {150, 325}, color = {219, 157, 48}, style = Font.BOLD, size = 36)
    private String nickName;

    /**
     * 班级名
     */
    @PosterFontCss(position = {507, 422}, color = {219, 157, 48}, style = Font.BOLD, size = 17)
    private String className;

    /**
     * 时间
     */
    @PosterFontCss(position = {695, 590}, color = {219, 157, 48}, size = 30)
    private String date;

    /**
     * 二维码
     */
    @PosterImageCss(position = {165, 545}, width = 90, height = 90)
    private BufferedImage qrCode;
}
